import request from '@/utils/myrequest'
// 初始化信息
function getLotInfo(kvs) {
  return request({
    url: '/tms/TrackIn/GetLotInfo',
    method: 'get',
    kvs
  })
}
// 带出项数据内容下拉框
function getTakeOutItemToList(kvs) {
  return request({
    url: '/tms/TrackIn/GetTakeOutItemToList',
    method: 'get',
    kvs
  })
}
// 确认开批
function doConfirm(kvs) {
  return request({
    url: 'tms/TrackIn/TrackInCommit',
    method: 'POST',
    kvs
  })
}
// 确认结批
function trackOutCommit(kvs) {
  return request({
    url: 'tms/TrackOut/TrackOutCommit',
    method: 'POST',
    kvs
  })
}
// 获取trackout信息
function getTrackOutInfo(kvs) {
  return request({
    url: 'tms/TrackOut/GetLotInfo',
    method: 'get',
    kvs
  })
}
// 判断holdcode check
function checkHoldCode(kvs) {
  return request({
    url: '/tms/TrackOut/CheckHoldCode',
    method: 'get',
    kvs
  })
}
// 根据编号获取测试机 头
function getBindingInfo(kvs) {
  return request({
    url: '/config/EqpBinding/GetEqpBinding',
    method: 'get',
    kvs
  })
}
// 取消开批
function cancelTrackIn(kvs) {
  return request({
    url: '/tms/TrackIn/CancelTrackIn',
    method: 'POST',
    kvs
  })
}
export default {
  getLotInfo, doConfirm, trackOutCommit, getTrackOutInfo,
  getTakeOutItemToList, checkHoldCode, getBindingInfo, cancelTrackIn
}
